﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Liju.Model
{
    /// <summary>
    /// 产品生产记录
    /// </summary>
    public class ProductRecordModel
    {
        public long ProductRecordID { get; set; }

        /// <summary>
        /// 产品Id
        /// </summary>
        public long ProductId { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        /// 产品条码
        /// </summary>
        public string ProductSN { get; set; }

        /// <summary>
        /// 任务总数量
        /// </summary>
        public int TaskNum { get; set; }

        /// <summary>
        /// 产品图片总数量
        /// </summary>
        public int ImgNum { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderSN { get; set; }

        /// <summary>
        /// 订单数量
        /// </summary>
        public int OrderNun { get; set; }

        /// <summary>
        /// 产品型号
        /// </summary>
        public string Model { get; set; }

        /// <summary>
        /// 当前任务号 第几个螺钉 从1开始
        /// </summary>
        public int WorkNo { get; set; }

        /// <summary>
        /// 当前任务步骤号 当前打螺钉动作步骤号 从0开始 用于任务中断 下次能接着打螺钉 6写MES前 7写MES完成
        /// </summary>
        public int TaskStepNo { get; set; }

        /// <summary>
        /// 当前任务步骤待打螺丝数量 0不送钉 已打 重打不送钉 1要送钉
        /// </summary>
        public int TaskStepScrewNum { get; set; }
        
        /// <summary>
        /// 产品生产状态 总状态 0未开始 1PASS 2执行中 3NG
        /// </summary>
        public int State { get; set; }

        /// <summary>
        /// NG备注 当前工序名称*NG原因
        /// </summary>
        public string NGReMark { get; set; }

        /// <summary>
        /// 最后作业员工号
        /// </summary>
        public string GongHao { get; set; }

        /// <summary>
        /// 最后作业员用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 作业开始时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }        

    }
}
